package net.xinshi.service.atom.impl;

import net.xinshi.dal.automapper.mapper.ApiLogMapper;
import net.xinshi.dal.automapper.model.ApiLog;
import net.xinshi.service.atom.IAtomApiLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author <a href="mailto:liukuo@xinshi.net">liukuo</a>
 * @version 1.0
 * @description
 * @since 2017/6/27.
 */
@Repository
public class AtomApiLogServiceImpl extends AtomBaseServiceImpl<ApiLog> implements IAtomApiLogService {

    @Autowired
    protected ApiLogMapper apiLogMapper;

    @Override
    public List<ApiLog> searchApiLogByCriteria(Map<String, Object> map) {
        return apiLogMapper.searchApiLogByCriteria(map);
    }

    @Override
    public Integer searchApiLogCount(Map<String, Object> map) {
        return apiLogMapper.searchApiLogCount(map);
    }
}
